package com.gzz.orchid.context.infrastructure.persistence.mapper.sys;


import com.gzz.orchid.common.boot.mybatis.BaseMapper;
import com.gzz.orchid.context.infrastructure.persistence.entity.sys.SysUserPo;
import org.apache.ibatis.annotations.MapKey;

import java.util.List;
import java.util.Map;


/**
 * 用户Mapper
 *
 * @author higmd
 */
public interface SysUserMapper extends BaseMapper<SysUserPo> {
    @MapKey("code")
    List<Map<String, String[]>> getPermissions(Long userId);

    List<String> getRoleCodes(Long userId);
}
